<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    // filter函数的使用
    const list = [10,30,50,90,20,50,100,150,110]
    let newList = list.filter(function (n) {
        return n<100
    })
    console.log(newList)
    // map函数的使用
    let new2List = newList.map(function (n) {
        return n*2
    })
    console.log(new2List)
    // reduce函数的使用
    let new3List = new2List.reduce(function (prev,n) {
        return prev + n
    })
    console.log(new3List)
</script>
</body>
</html>
